import { createRouter, createWebHistory } from 'vue-router'

export const routes = [
  {
    path: '/',
    redirect: '/zhu',
    children: [
      {
        path: '/zhu',
        name: '主应用页面',
        component: () => import('@/views/index2.vue')
      },
      {
        path: '/demo/:page*',
        name: '子应用',
        component: () => import('@/views/index1.vue')
      }
    ]
  },
]

const router = createRouter({
  history: createWebHistory('/base/'),
  routes: routes
})

export default router;